<template>
  <Demo msg="你好啊" school="石大" @hello="showMsg">
    <template v-slot:qqq>
      <span>你好啊，我是未声明的插槽</span>
    </template>
    <template v-slot:www>
      <span>你好啊，我是未声明的插槽</span>
    </template>
  </Demo>
</template>

<script>
import Demo from "./components/Demo";
export default {
  name: "App",
  components: { Demo },
  setup(props) {
    function showMsg(params) {
      alert("你好啊" + params);
    }
    return {
      showMsg,
    };
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
